﻿namespace H2
{
    using System;

    public static class Benchmark
    {
        private static DateTime __Begin;
        private static DateTime __End;
        private static string __result;

        public static void Begin()
        {
            __Begin = DateTime.Now;
        }

        public static void End()
        {
            __End = DateTime.Now;
            TimeSpan span = __End.Subtract(__Begin);
            __result = span.Seconds.ToString() + "." + span.Milliseconds.ToString() + " Seconds";
        }

        public static string Result
        {
            get
            {
                return __result;
            }
        }
    }
}

